package com.tl.khadmin.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.tl.khadmin.bean.Supplier;

public interface SupplierMapper {
    int deleteByPrimaryKey(@Param("id") Long id);

    int insert(Supplier record);

    int insertSelective(Supplier record);

    Supplier selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Supplier record);

    int updateByPrimaryKey(Supplier record);
    
    List<Supplier> listSupplier(Map<String, Object> param);

	List<Supplier> showSupplierByPage(Map<String, Object> params); 
	
	Integer queryIdByBrandName(String supplierName);

	int deleteByIds(@Param("ids") String[] ids);
	
	int updateDeleteByIds(@Param("ids") String[] ids); 

	Integer queryIdByBrandNameAndId(@Param("id")Integer id, @Param("supplierName") String supplierName);

	int count(@Param("contactPhone") String contactPhone, @Param("supplierName") String supplierName);
}